google.load('visualization', '1.0', {'packages':['corechart']}); google.setOnLoadCallback(function(){ var data = new google.visualization.DataTable(); data.addColumn('string', '日'); data.addColumn('number', 'DL数'); data.addColumn('number', 'Googleセルラン'); data.addColumn('number', 'iOSセルラン'); data.addColumn({type:'string', role:'annotation'}); data.addColumn({type:'string', role:'annotationText'}); data.addRows([ ['2024-03-01',5047655,null,null,null,null], ['2024-03-02',5047792,null,null,null,null], ['2024-03-03',5048133,null,null,null,null], ['2024-03-04',5048133,null,null,null,null], ['2024-03-05',5048300,null,null,null,null], ['2024-03-06',5048477,null,null,null,null], ['2024-03-07',5048631,null,null,null,null], ['2024-03-08',5048737,null,null,null,null], ['2024-03-09',5048896,null,null,null,null], ['2024-03-10',5048997,null,null,null,null], ['2024-03-11',5049177,null,null,null,null], ['2024-03-12',5049333,null,null,null,null], ['2024-03-13',5049667,null,null,null,null], ['2024-03-14',5049667,null,null,null,null], ['2024-03-15',5049667,null,null,null,null], ['2024-03-16',5049667,null,null,null,null], ['2024-03-17',5050200,null,null,null,null], ['2024-03-18',5050200,null,null,null,null], ['2024-03-19',5050348,null,null,null,null], ['2024-03-20',5050453,null,null,null,null], ['2024-03-21',5050618,null,null,null,null], ['2024-03-22',5050752,null,null,null,null], ['2024-03-23',5050880,null,null,null,null], ['2024-03-24',5050964,null,null,null,null], ['2024-03-25',5051116,null,null,null,null], ['2024-03-26',5051288,null,null,null,null], ['2024-03-27',5051288,null,null,null,null], ['2024-03-28',5051573,null,null,null,null], ['2024-03-29',5051743,null,null,null,null], ['2024-03-30',5051743,null,null,null,null], ['2024-03-31',5051743,null,null,null,null], ['2024-04-01',5052284,null,null,null,null], ['2024-04-02',5052284,null,null,null,null], ['2024-04-03',5052284,null,null,null,null], ['2024-04-04',5052663,null,null,null,null], ['2024-04-05',5052787,null,null,null,null], ['2024-04-06',5052939,null,null,null,null], ['2024-04-07',5052939,null,null,null,null], ['2024-04-08',5053079,null,null,null,null], ['2024-04-09',5053254,null,null,null,null], ['2024-04-10',5053387,null,null,null,null], ['2024-04-11',5053505,null,null,null,null], ['2024-04-12',5053674,null,null,null,null], ['2024-04-13',5053786,null,null,null,null], ['2024-04-14',5053954,null,null,null,null], ['2024-04-15',5054132,null,null,null,null], ['2024-04-16',5054291,null,null,null,null], ['2024-04-17',5054424,null,null,null,null], ['2024-04-18',5054585,null,null,null,null], ['2024-04-19',5054735,null,null,null,null], ['2024-04-20',5054905,null,null,null,null], ['2024-04-21',5054990,null,null,null,null], ['2024-04-22',5055365,null,null,null,null], ['2024-04-23',5055365,null,null,null,null], ['2024-04-24',5055611,null,null,null,null], ['2024-04-25',5055715,null,null,null,null], ['2024-04-26',5055787,null,null,null,null], ['2024-04-27',5055844,null,null,null,null], ['2024-04-28',5055954,null,null,null,null], ['2024-04-29',5055954,null,null,null,null], ['2024-04-30',5055954,null,null,null,null] ]); var options = { chartArea: {'width':'85%', 'height':'65%', 'left':60 }, 'pointSize': 3, legend: {position: 'top' }, vAxes:[ {direction:1}, {direction:-1,viewWindow:{min:0,max:0}} ], series: { 0:{ type: 'bars', color: 'skyblue', targetAxisIndex: 0, }, 1:{ type: 'line', color: 'seagreen', targetAxisIndex: 1, }, 2:{ type: 'line', color: 'red', targetAxisIndex: 1, }, }, tooltip: { trigger: 'both' }, focusTarget: 'category', colors:['#2980b9','#e74c3c'] }; var chart = new google.visualization.ComboChart(document.getElementById('graphField')); chart.draw(data, options); google.visualization.events.addListener(chart, 'click', function() { if(chart.getSelection()[0]){ chart.setSelection(null) } }); });